package com.ethink.platform.controller.mdm;

import com.ethink.framework.common.web.BaseController;
import com.ethink.framework.common.web.response.CommonResponse;
import com.ethink.report.common.entity.AreaInfo;
import com.ethink.report.common.entity.StoreCodeNameInfo;
import com.ethink.report.common.mapper.TagReferenceMapper;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 辉辉 2022/12/23 14:43
 */
@Tag(name = "TagReferenceController", description = "店铺 Controller")
@RestController
@Slf4j
@RequestMapping("platform-server/v1/mdm-service")
public class TagReferenceController extends BaseController {

    @Autowired
    private TagReferenceMapper tagReferenceMapper;

    @Operation(summary = "查询美妆店铺名称")
    @GetMapping("/tagReference/list")
    public CommonResponse<List<StoreCodeNameInfo>> list() {
        return succeedWith(tagReferenceMapper.queryTagReferenceName());
    }
}
